import request from '@/util/http';

/**
 *  获取学员列表
 */
export const getStuListAPI = () =>
  request({
    url: '/classes/stu',
  });

/**
 *  删除学员
 */
export const delStuItemAPI = (id) =>
  request({
    method: 'DELETE',
    url: `/api/stu?id=${id}`,
  });

/**
 *  编辑学员
 */
export const compileStuItemAPI = (data) =>
  request({
    method: 'PUT',
    url: '/api/stu',
    data,
  });
